package com.yunhe.spring;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Sming {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("beans3.xml");
        /**
         * 多力不管销毁创建玩一个,你用完扔了就可以
         */
        A a = context.getBean(A.class);
        A b = context.getBean(A.class);
        A c = context.getBean(A.class);
        A d = context.getBean(A.class);
        context.close();
    }
}
